/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package baiwa.rta.model;

import java.io.Serializable;
import java.util.Date;

import org.apache.struts2.json.annotations.JSON;

import com.opensymphony.xwork2.conversion.annotations.TypeConversion;

/**
 *
 * @author jirapatjantsakool
 */
public class RMaccrModel extends BaseModel implements Serializable {
    private static final long serialVersionUID = 1L;
    private Integer accrid;
    private String accrlrno;
    private String accrcrdid;
    private String accridusrno;
    private String accrstat;
    private Date accrstatdat;
    private Date accratvdat;
    private String accrcreby;
    private Date accrcredat;
    private String accrupdby;
    private Date accrupddat;
    private Integer rlrmid;

    private TowerModel tower;
    
    public RMaccrModel() {
    }

    public RMaccrModel(Integer accrid) {
        this.accrid = accrid;
    }

    public Integer getAccrid() {
        return accrid;
    }

    public void setAccrid(Integer accrid) {
        this.accrid = accrid;
    }

    public String getAccrlrno() {
        return accrlrno;
    }

    public void setAccrlrno(String accrlrno) {
        this.accrlrno = accrlrno;
    }

    public String getAccrcrdid() {
        return accrcrdid;
    }

    public void setAccrcrdid(String accrcrdid) {
        this.accrcrdid = accrcrdid;
    }

    public String getAccridusrno() {
        return accridusrno;
    }

    public void setAccridusrno(String accridusrno) {
        this.accridusrno = accridusrno;
    }

    public String getAccrstat() {
        return accrstat;
    }

    public void setAccrstat(String accrstat) {
        this.accrstat = accrstat;
    }

    @JSON(format = "dd/MM/yyyy")
    public Date getAccrstatdat() {
        return accrstatdat;
    }

    @TypeConversion(converter = "baiwa.rta.converter.StringToDateConverter")
    public void setAccrstatdat(Date accrstatdat) {
        this.accrstatdat = accrstatdat;
    }
    
    @JSON(format = "dd/MM/yyyy")
    public Date getAccratvdat() {
        return accratvdat;
    }

    @TypeConversion(converter = "baiwa.rta.converter.StringToDateConverter")
    public void setAccratvdat(Date accratvdat) {
        this.accratvdat = accratvdat;
    }

    public String getAccrcreby() {
        return accrcreby;
    }

    public void setAccrcreby(String accrcreby) {
        this.accrcreby = accrcreby;
    }

    @JSON(format = "dd/MM/yyyy")
    public Date getAccrcredat() {
        return accrcredat;
    }

    @TypeConversion(converter = "baiwa.rta.converter.StringToDateConverter")
    public void setAccrcredat(Date accrcredat) {
        this.accrcredat = accrcredat;
    }

    public String getAccrupdby() {
        return accrupdby;
    }

    public void setAccrupdby(String accrupdby) {
        this.accrupdby = accrupdby;
    }

    @JSON(format = "dd/MM/yyyy")
    public Date getAccrupddat() {
        return accrupddat;
    }

    @TypeConversion(converter = "baiwa.rta.converter.StringToDateConverter")
    public void setAccrupddat(Date accrupddat) {
        this.accrupddat = accrupddat;
    }

    public Integer getRlrmid() {
        return rlrmid;
    }

    public void setRlrmid(Integer rlrmid) {
        this.rlrmid = rlrmid;
    }

	public TowerModel getTower() {
		return tower;
	}

	public void setTower(TowerModel tower) {
		this.tower = tower;
	}

	@Override
	public String toString() {
		return "RMaccrModel [accrid=" + accrid + ", accrlrno=" + accrlrno
				+ ", accrcrdid=" + accrcrdid + ", accridusrno=" + accridusrno
				+ ", accrstat=" + accrstat + ", accrstatdat=" + accrstatdat
				+ ", accratvdat=" + accratvdat + ", accrcreby=" + accrcreby
				+ ", accrcredat=" + accrcredat + ", accrupdby=" + accrupdby
				+ ", accrupddat=" + accrupddat + ", rlrmid=" + rlrmid
				+ ", tower=" + tower + "]";
	}
   
    
}
